 <#include "../common/com.html"/> <@layout>

<!-- ace styles -->
<link rel="stylesheet" href="${ctx}/static/assets/css/ace.min.css" />
<script src="${ctx}/static/inc/platform/js/ajax.js"></script>

<script type="text/javascript">
	function xfkd() {
		var card =$("#cards").val();
		var ye =$("#ye").val();
		$("#id").attr("value", $("#ids").val());
		var id = $("#id").val();
		var url = '${ctx}/xskd/xskd?id=' + id+"&card="+card;
		window.location.href = url;
	}
	function zlxg() {
		$("#id").attr("value", $("#ids").val());
		var id = $("#id").val();
		var url = '${ctx}/xskd/zlxg?id=' + id;
		window.location.href = url;
	}
	function gs() {
		$("#id").attr("value", $("#ids").val());
		var id = $("#id").val();
		var url = '${ctx}/xskd/gs?id=' + id;
		window.location.href = url;
	}
	function cz() {
		var card =$("#cards").val();
		$("#id").attr("value", $("#ids").val());
		var id = $("#id").val();
		var url = '${ctx}/xskd/cz?id=' + id+"&card="+card;
		window.location.href = url;
	}
	function zs(){
		var card =$("#cards").val();
		var url = '${ctx}/xskd/zs?card='+card;
		window.location.href = url;
	}
	function jfdh(){
		var card =$("#cards").val();
		var url = '${ctx}/xskd/jfdh?card='+card;
		window.location.href = url;
	}
</script>
<div class="page-content">
	<div class="page-header" style="height: 15px">销售开单</div>
	<!-- /.page-header -->
	<div class="row-fluid">
		<div class="span12 ">
			<div class="widget-main alert-info">
				请输入会员信息：<input id="card" name="card" type="text"
					style="min-height: 24px;" />
				<button id="search_btn" onclick="return true;"
					class="btn btn-info btn-small" >查询</button>
			</div>



			<div id="divs"></div>
			<form class="form-inline" id="myform">
				<input id="id" name="id" type="hidden" style="min-height: 24px;" />
				
			</form>

		</div>
	</div>
</div>
</body>

<script>
	$("#search_btn").click(
			function() {
				var card = $("#card").val();
				send_request_update('${ctx}/xskd/gethy?search_EQ_card=' + card,
						"", divs);
			});
	
	jQuery(function($) {

		var cards = '${(card)!}';
		if (cards != "") {
			send_request_update('${ctx}/xskd/gethy?search_EQ_card=' + cards,
					"", divs);
		}
	});
	// 绑定回车事件
	document.onkeydown = function(e)
	{
	    var e = window.event   ?   window.event   :   e; 
	    if(e.keyCode == 13){
	    	var card = $("#card").val();
			send_request_update('${ctx}/xskd/gethy?search_EQ_card=' + card,
					"", divs);
	    }
	}
</script>
</@layout>
